package com.gw.musicbox;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;

public class MusicBox extends Activity
{
	/** The OpenGL View */
	private GLSurfaceView glSurface;
	
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);

		//Create an Instance with this Activity
		glSurface = new GLSurfaceView(this);
		//Set our own Renderer
		glSurface.setRenderer(new gameplay(this));
		//Set the GLSurface as View to this Activity
		setContentView(glSurface);
		
		
	}
	
	/**
	 * Remember to resume the glSurface
	 */
	@Override
	protected void onResume() {
		super.onResume();
		glSurface.onResume();
	}

	/**
	 * Also pause the glSurface
	 */
	@Override
	protected void onPause() {
		super.onPause();
		glSurface.onPause();
	}

	
	
}